﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Entities
{
    /// <summary>
    /// 文章表实体
    /// </summary>
    /// 修改记录：
    public class Article : Entity
    {
        /// <summary>
        /// 文章标题
        /// </summary>
        public string Article_name { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string Article_key { get; set; }
        
        /// <summary>
        /// 内容
        /// </summary>
        public string Article_txt { get; set; }

        /// <summary>
        /// 文章类别名称
        /// </summary>
        public int ArticleType_Id { get; set; }

        /// <summary>
        /// 发布人ID
        /// </summary>
        public int User_Id { get; set; }

        /// <summary>
        /// 创建时间(当前时间)
        /// </summary>
        public DateTime Createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// (默认否:false) 是否禁用(管理员设置)
        /// </summary>
        public int Disable { get; set; }
        
        /// <summary>
        ///  可空  禁用原因
        /// </summary>
        public string Disabledesc { get; set; }
        
        #region 审核管理
        /// <summary>
        /// 审核管理员ID
        /// </summary>
        public int Admin_Id { get; set; } = 0;
        
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime Admin_Createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 审核状态 
        /// 1：提交审核
        /// 2：审核通过
        /// 3：审核失败
        /// 4：再次提交
        /// 5：关闭
        /// </summary>
        public int Admin_step { get; set; } = 0;
        
        /// <summary>
        /// 审核备注
        /// </summary>
        public string Admin_remark { get; set; }
        #endregion

    }
}
